package com.ys.erp.stage_mall_service.bean.condition;

import com.ys.erp.framework.condition.BasePageCondition;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author lwj
 * @date 2025/5/19
 */
@Data
public class OrderCondition {

    @EqualsAndHashCode(callSuper = true)
    @Data
    public static class PageOrderCon extends BasePageCondition {

        @Schema(description = "订单状态：0=待付款，1=待发货，2=待收货，3=已完成，4=已取消")
        private Integer status;

        @Schema(description = "商品名称，支持模糊查询")
        private String goodsName;

        @Schema(description = "用户ID")
        private Long userId;

        @Schema(description = "订单编号，支持模糊查询")
        private String orderNo;

        @Schema(description = "收货人姓名，支持模糊查询")
        private String deliveryName;

        @Schema(description = "收货人手机号")
        private String deliveryPhone;

        @Schema(description = "优惠类型：0=使用优惠券，1=使用幺豆")
        private Integer discountType;

        @Schema(description = "开始时间，格式：yyyy-MM-dd HH:mm:ss")
        private String startTime;

        @Schema(description = "结束时间，格式：yyyy-MM-dd HH:mm:ss")
        private String endTime;

        @Schema(description = "用户备注信息")
        private String userRemark;

        @Schema(description = "价格排序：0=降序，1=升序")
        private Integer isPriceDesc;

        @Schema(description = "商品类型：0=普通商品，1=宠物商品")
        private Integer goodsType;

        @Schema(description = "支付方式：0=微信支付1幺币支付，2=组合支付，3幺豆抵扣")
        private Integer payType;

        @Schema(description = "NORMAL正常，DONATE:公益捐赠")
        private String orderAttr;

        @Schema(description = "营地id")
        private Long campId;

    }

}
